Repository navigation
runtime: add unit test suite for console command list IID mapping (RT-XS-COMMAND-LIST-IID-COVERAGE) - #2039
Conversation
…-XS-COMMAND-LIST-IID-COVERAGE) Add standalone CPU-only unit test runtime/test/d3d12_xs_command_list_iid_test.cpp covering console command list IID mapping to PC ID3D12GraphicsCommandList6, classification of PC command list IIDs (is_pc_command_list_iid), and pass-through of PC and unknown IIDs. Register d3d12_xs_command_list_iid_test executable and CTest in runtime/CMakeLists.txt. AI-assisted (Claude Code)
|
Verified on Windows 11 (
AI-assisted. |
|
Verified by OreoFR
Note: shares AI-assisted (Claude Code, Claude Opus 5.5). |
|
Independent verification on this machine (Windows 11, MSVC 19.44.35226): this pull request cannot compile, and the reason suggests it is obsolete rather than broken - 1. It applies. 2. It does not compile: 3. The header exists in the branch and in the branch's base, but not in So the file this test was written for was removed from What I would do with it: close it rather than rebase it. A rebase would have to reintroduce The one thing I cannot rule out: that the mapping logic was moved rather than dropped, and the test could be retargeted to a new file. How it was found: a sweep of open pull requests that replay onto Written with an AI assistant. |
|
Closing as no longer applicable, after the check by fiestorra above: the header this tests, AI-assisted (Claude Code). Closed at the owner's request (MoonEyes). |
Claimed in the coordination issue as: RT-XS-COMMAND-LIST-IID-COVERAGE (claim)
What and why
runtime/shims/d3d12_xs_command_list_iid.hprovides mapping for console command-list interface IDs passed to device slot 73 (CreateCommandListX). The console passes a specific GUID whose PC counterpart isID3D12GraphicsCommandList6(sharing identical first 32 bitsData1). Unmapped console IIDs fail on the PC device withE_NOINTERFACE.Previously,
d3d12_xs_command_list_iid.hhad no dedicated unit test.This adds
runtime/test/d3d12_xs_command_list_iid_test.cppverifying:kCommandListIidPairs&command_list_iid_for_pc:c3827890-4024-474c-98cf-645b51dc4874to PCID3D12GraphicsCommandList6(c3827890-e548-4cfa-96cf-5689a9370f80), verifying identicalData1and settingmapped == true.mapped == nullptr.is_pc_command_list_iid:ID3D12CommandList,ID3D12GraphicsCommandList, and 1 through 7) are recognized as PC IIDs.IUnknown,ID3D12Device,ID3D12Resource) and console IIDs.mapped == false).Registers
d3d12_xs_command_list_iid_testand CTest inruntime/CMakeLists.txt.Tested
24/24 checks passed(0 failures).python -I tests/test_ci_registration.py: 16/16 pass.python -I tests/test_text_write_line_endings.py: 3/3 pass.python -I scripts/check_no_game_data.py: clean (0 violations, no game data).AI-assisted (Claude Code)